package com.sptpc.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.sptpc.service.ProductService;

@Controller
public class Productcontroller {
	@Autowired
	private ProductService productService;
	
	@RequestMapping(value="ProductServlet",method=RequestMethod.POST)
	public String GetProductById(@RequestParam("pid") String pid,
			HttpServletRequest request, HttpServletResponse response,
			HttpSession session) {
				return "product_info";
		
	}
	
}
